<?php

class Skjb_Search_Xapian_PositionIterator
{
    public $_cPtr=null;

    function __construct($other=null) {
        switch (func_num_args()) {
        case 0: $r=new_PositionIterator(); break;
        default: $r=new_PositionIterator($other);
        }
        $this->_cPtr=$r;
    }

    function get_termpos() {
        return PositionIterator_get_termpos($this->_cPtr);
    }

    function next() {
        PositionIterator_next($this->_cPtr);
    }

    function equals($other) {
        return PositionIterator_equals($this->_cPtr,$other);
    }

    function skip_to($pos) {
        PositionIterator_skip_to($this->_cPtr,$pos);
    }

    function get_description() {
        return PositionIterator_get_description($this->_cPtr);
    }
}